<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('Skin/index')}">试题列表</a></li>
        <li class="active"><a href="#">编辑试题</a></li>
    </ul>
    <form class="form-horizontal js-ajax-form margin-top-20" role="form" action="{:url('Skin/edit')}"
          method="post">
          <input type="hidden" name="id" value="{$info['id']}">
        <fieldset>
            <div class="tabbable">
                <div class="tab-content">
                    <div class="tab-pane active" id="A">
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">试题名称</label>
                            <div class="col-md-3 col-sm-5">
                                <input type="text" class="form-control" name="name"
                                       value="{$info['name']}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">答案A</label>
                            <div class="col-md-3 col-sm-5">
                                <input type="text" class="form-control" name="answer[A]"
                                        value="{$info['answer']['A']}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">答案B</label>
                            <div class="col-md-3 col-sm-5">
                                <input type="text" class="form-control" name="answer[B]"
                                        value="{$info['answer']['B']}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">答案C</label>
                            <div class="col-md-3 col-sm-5">
                                <input type="text" class="form-control" name="answer[C]"
                                        value="{$info['answer']['C']}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">答案D</label>
                            <div class="col-md-3 col-sm-5">
                                <input type="text" class="form-control" name="answer[D]"
                                        value="{$info['answer']['D']}">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" style="width:150px;" class="btn btn-primary">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </fieldset>
    </form>

</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script type="text/javascript" src="__STATIC__/js/frontend.js"></script>
</body>
</html>
